using Castle.MonoRail.Framework;
using WineCellar.Data;

namespace WineCellar.Web.Components
{
    public class WineRowComponent :ViewComponent
    {
        private Wine wine;

        public override void Initialize()
        {
            wine = (Wine)ComponentParams["wine"];
            base.Initialize();
        }
        public override void Render()
        {
            PropertyBag["wine"] = wine;            
            base.Render();
        }
    }
}
